<%@ page import="auctionatr.User"%>
<html>
<head>
<meta name="layout" content="main" />
<g:set var="entityName"
	value="${message(code: 'user.label', default: 'User')}" />
<title><g:message code="user.list.label" />
</title>
</head>
<body>
	<h1>
		<g:message code="user.list.label" />
	</h1>
	<g:if test="${flash.message}">
		<div class="message">
			${flash.message}
		</div>
	</g:if>
	<table>
		<thead>
			<tr>

				<g:sortableColumn property="username"
					title="${message(code: 'user.username.label', default: 'Username')}" />

				<g:sortableColumn property="email"
					title="${message(code: 'user.email.label', default: 'Email')}" />

				<g:sortableColumn property="aboutUser"
					title="${message(code: 'user.aboutUser.label', default: 'About User')}" />

			</tr>
		</thead>
		<tbody>
			<g:each in="${userInstanceList}" status="i" var="userInstance">
				<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

					<td>
						<g:link action="show" id="${userInstance.id}">${fieldValue(bean: userInstance, field: "username")}</g:link>
					</td>

					<td>
						${fieldValue(bean: userInstance, field: "email")}
					</td>

					<td>
						${fieldValue(bean: userInstance, field: "aboutUser")}
					</td>

				</tr>
			</g:each>
		</tbody>
	</table>

	<div class="paginateButtons">
		<g:paginate total="${userInstanceTotal}" />
	</div>

</body>
</html>
